import { AMAP_WEB_KEY } from '@/libs/config'
import Fly from 'flyio/dist/npm/fly'
const fly = new Fly()

export const API_REGEO = (data) => fly.get('https://restapi.amap.com/v3/geocode/regeo', {
  location: `${data.lng},${data.lat}`,
  key: AMAP_WEB_KEY
})
